{ Summer Informatics School.
  Problemset: http://agul-problems1.googlecode.com/svn/trunk/2010-2011/sis/problemset11.pdf
  Problem M
  Points: 100
}
var i,n,k:longint; b:array[-33000..33000] of boolean;
begin
read(n);
fillchar(b,sizeof(b),false);
for i:=1 to n do begin
  read(k);
  if not b[k] then begin
    write(k,' ');
    b[k]:=true;
  end;
end;
end.
